package com.qj.travel.service.impl;

import com.qj.travel.db.dao.VideoClassDao;
import com.qj.travel.db.model.VideoClassModel;
import com.qj.travel.service.VideoClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Admin on 2016/10/19.
 */
@Service
public class VideoClassServiceImpl implements VideoClassService {

    @Autowired
    private VideoClassDao videoClassDao;

    public List<VideoClassModel> getVideoClass() {
        return videoClassDao.getVideoClass();
    }

    public VideoClassModel getOneClass(String videoClass) {
        return videoClassDao.getOneClass(videoClass);
    }

    public int createClass(String videoClass) {
        return videoClassDao.createClass(videoClass);
    }

    public int deleteClass(String videoClass) {
        return videoClassDao.deleteClass(videoClass);
    }

    public int renameClass(String newVideoClass, String videoClass) {
        return videoClassDao.renameClass(newVideoClass,videoClass);
    }
}
